import styles from './index.less';
import { connect } from 'dva';
import Main from './main';
import Pasture from './pasture';
import Muniuren from './muniuren';
import More from './more';
import MainTab from '../components/mainTab';

function BasicLayout(props) {
  let tabConponentList = [<Main />, <Pasture />, <Muniuren />, <More />];
  return (
    <div>
      <MainTab tabConponentList={tabConponentList} />
    </div>
  );
}

export default connect(state => {
  return {
    index: state.index
  };
})(BasicLayout);
